﻿@model IEnumerable<TreeViewItemModel>
<!-- TreeView -->
<div class="span4">
    <div class="TreeViewPanel">
        @(Html.Telerik().TreeView()
            .Name("CollectionTreeView")
            .DragAndDrop(settings => settings
                .DropTargets(".drop-container")
            )
            .ClientEvents(events => events
                .OnNodeDrop("onNodeDrop")
            )
            .BindTo(Model)
            .HtmlAttributes(new { @class = "t-group" })
            .DataBinding(dataBinding => dataBinding
                .Ajax().Select("_SubCollectionLoading", "TreeView")
            )
            // .ShowLines(true)
        )
    </div>
</div>
